package com.sea.artefactos.action;

import com.sea.artefactos.service.ArtefactoService;
import com.sea.model.Artefacto;

public class ActualizarEstadoAction {
	private int idart;
	private ArtefactoService service = new ArtefactoService();	
	private Artefacto artefactomod; 
	
	public String execute(){
		String camino="success";		
		artefactomod=service.obtenerArtefacto(idart);		
		artefactomod.setEstado("PUBLICADO");
		service.actulizarEstado(artefactomod);		
		System.out.println(artefactomod.getIdart());
		
		return camino;
	}
	public int getIdart() {
		return idart;
	}

	public void setIdart(int idart) {
		this.idart = idart;
	}

	public Artefacto getArtefactomod() {
		return artefactomod;
	}

	public void setArtefactomod(Artefacto artefactomod) {
		this.artefactomod = artefactomod;
	}
	

}
